    <!-- 公共头部分 -->
    {include file="common:header" /}

    <!-- 主体部分 -->
    <div class="hd-w" id="profile">

            <!-- 公共头部分 -->
            {include file="common:member_menu" /}

            <div class="right">
                <div class="opt-title">
                    <h2>收货地址</h2>
                </div>
                <div class="opt-content">
                    <div>
                        <table width="100%" class="table-info">
                           <tr>
                                <th width="12%">收货人</th>
                                <th width="11%">手机</th>
                                <th width="13%">电话</th>
                                <th width="19%">Email</th>
                                <th>收货地址</th>
                                <th width="8%">操作</th>
                            </tr>
                            {volist name="address" id="v"}
                                <tr aid="{$v.aid}">
                                    <td>{$v.consignee}</td>
                                    <td>{$v.mobile}</td>
                                    <td>{$v.tel}</td>
                                    <td>{$v.email}</td>
                                    <td>
                                        <p>{$v.province}-{$v.city}-{$v.district}</p>
                                        <p>{$v.address}</p>
                                        <p>{$v.zipcode}</p>
                                    </td>
                                    <td>
                                        <a href="javascript:;" class="edit-address">编辑</a>
                                        <a href="javascript:;" class="del-address">删除</a>
                                    </td>
                                </tr>   
                            {/volist}                         
                        </table>
                    </div>

                    <div class="btn add-address">新增地址</div>
                </div>
            </div>
        </div>
        <div id="address-dialog" class="fn-hide" title="添加收货地址">
            <form action="{:url('address/add')}" id="addressForm" method="post">
                <table class="table-form">
                    <tr>
                        <th><span style="color:red">*</span>收货人姓名：</th>
                        <td><input type="text" name="consignee" id="" class="input must error"></td>
                    </tr>
                    <tr>
                        <th><span style="color:red">*</span>手机：</th>
                        <td>
                            <input type="text" name="mobile" class="input input-large must error" value="">
                        </td>
                    </tr>
                    <tr>
                        <th>电话：</th>
                        <td>
                            <input type="text" name="tel" class="input input-large" value="">
                        </td>
                    </tr>
                    <tr>
                        <th>Email：</th>
                        <td>
                            <input type="text" name="email" class="input input-large" value="">
                        </td>
                    </tr>
                     <tr>
                        <th><span style="color:red">*</span>所在地：</th>
                        <td>
                             <select name="province" class="user-add select must error" id="province">
                                <option value="">请选择</option>
                                {volist name="citys" id="city"}
                                    <option value="{$city.cid}">{$city.city_name}</option>
                                {/volist}
                                    
                            </select>
                            <select name="city" class="user-add select must error" id="city" style="display:none;">
                               
                            </select>
                            <select name="district" id="district" class="select must error" style="display:none;">
                                
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th><span style="color:red">*</span>详细地址：</th>
                        <td>
                            <textarea name="address" class="input input-large must error" rows="6"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>邮政编码：</th>
                        <td>
                            <input type="text" name="zipcode" id="" class="input">
                        </td>
                    </tr>
                    <tr>
                        <th>设置为默认地址：</th>
                        <td>
                            <input type="radio" name="default" value="0" checked="checked" />否
                            <input type="radio" name="default" value="1" />是
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <div id="address-dialog-edit" class="fn-hide" title="修改收货地址">
            
        </div>
        <script>
            getChildCityUrl = "{:url('address/getChildCity','',false)}";
            getAddressUrl = "{:url('address/getAddress','',false)}";
            editAddressUrl = "{:url('address/edit','',false)}";
            delAddressUrl = "{:url('address/del','',false)}";
        </script>